import random

x = random.randint(0, 10)
a = int(raw_input('guess number?'))
t = 0
while a != x:
    t = t + 1
    if t >= 3:
        print 'time up!'
        print x
        exit(0)
    else:
        if a > x:
            a = int(raw_input('to big!'))
        else:
            a = int(raw_input('to small!'))
if a == x:
    print 'bingo!'
print x
